import { post } from '@/utils/request'

const prefix = 'trade'

export default {
  /**
   * 退款
   */
  refund: id => {
    return post(`${prefix}/handle/refund`, {
      trade_id: id
    })
  },
  /**
   * 退款
   */
  handle: data => {
    return post(`${prefix}/handle/index`, data)
  }
}
